package com.fanshuai.springcloud.outer.thirdservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "baidu", url = "https://www.baidu.com", path = "/")
public interface BaiduService {
    @GetMapping(value = "/", produces = MediaType.TEXT_HTML_VALUE)
    String baidu();
}
